package com.ruoyi.cderp.domain;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description
 * @Author 王芷怡
 * @Date 2025/6/11 16:29
 * 领料单DTO
 **/
public class PickingDTO {
    private String orderId;
    private String orderNo;
    private String productId;
    private String productName;
    private BigDecimal plannedQuantity;
    private List<PickingItemDTO> items;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public BigDecimal getPlannedQuantity() {
        return plannedQuantity;
    }

    public void setPlannedQuantity(BigDecimal plannedQuantity) {
        this.plannedQuantity = plannedQuantity;
    }

    public List<PickingItemDTO> getItems() {
        return items;
    }

    public void setItems(List<PickingItemDTO> items) {
        this.items = items;
    }

    @Data
    public static class PickingItemDTO {
        private String materialId;
        private String materialCode;
        private String materialName;
        private BigDecimal requiredQuantity;
        private BigDecimal stockQuantity;
        private String warehouseId;
        private String warehouseName;
        private BigDecimal actualQuantity;
        private String unit;
    }
}
